package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * PY_UserHistory实体类
 * 
 * @author 
 *
 */
public class PyUserhistory {
	/***/
	private Object ID; 
	/***/
	private String UserNo; 
	/***/
	private Integer Typee; 
	/***/
	private String OrderNo; 
	/***/
	private java.time.Instant Datee; 
	/***/
	private Integer PreValue; 
	/***/
	private Integer CurValue; 
	/***/
	private Integer Amount; 
	/***/
	private Double BillMoney; 
	/***/
	private Double PayMoney; 
	/***/
	private Double UserMoney; 
	/**
	 * 实例化
	 */
	public PyUserhistory() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public PyUserhistory(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("Typee") instanceof Number) {
			this.setTypee(((Number) obj.get("Typee")).intValue());
		}
		if (obj.get("OrderNo") instanceof String) {
			this.setOrderNo((String) obj.get("OrderNo"));
		}
		if (obj.get("Datee") instanceof java.time.Instant) {
			this.setDatee((java.time.Instant) obj.get("Datee"));
		}
		if (obj.get("PreValue") instanceof Number) {
			this.setPreValue(((Number) obj.get("PreValue")).intValue());
		}
		if (obj.get("CurValue") instanceof Number) {
			this.setCurValue(((Number) obj.get("CurValue")).intValue());
		}
		if (obj.get("Amount") instanceof Number) {
			this.setAmount(((Number) obj.get("Amount")).intValue());
		}
		if (obj.get("BillMoney") instanceof Number) {
			this.setBillMoney(((Number) obj.get("BillMoney")).doubleValue());
		}
		if (obj.get("PayMoney") instanceof Number) {
			this.setPayMoney(((Number) obj.get("PayMoney")).doubleValue());
		}
		if (obj.get("UserMoney") instanceof Number) {
			this.setUserMoney(((Number) obj.get("UserMoney")).doubleValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getTypee() != null) {
			result.put("Typee",this.getTypee());
		}
		if (this.getOrderNo() != null) {
			result.put("OrderNo",this.getOrderNo());
		}
		if (this.getDatee() != null) {
			result.put("Datee",this.getDatee());
		}
		if (this.getPreValue() != null) {
			result.put("PreValue",this.getPreValue());
		}
		if (this.getCurValue() != null) {
			result.put("CurValue",this.getCurValue());
		}
		if (this.getAmount() != null) {
			result.put("Amount",this.getAmount());
		}
		if (this.getBillMoney() != null) {
			result.put("BillMoney",this.getBillMoney());
		}
		if (this.getPayMoney() != null) {
			result.put("PayMoney",this.getPayMoney());
		}
		if (this.getUserMoney() != null) {
			result.put("UserMoney",this.getUserMoney());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取Typee
	 * 
	 * @return
	 */
	public Integer getTypee() {
		return Typee;
	}

	/**
	 * 设置Typee
	 * 
	 * @param Typee
	 */
	public void setTypee(Integer Typee) {
		this.Typee = Typee;
	}
	
	/**
	 * 获取OrderNo
	 * 
	 * @return
	 */
	public String getOrderNo() {
		return OrderNo;
	}

	/**
	 * 设置OrderNo
	 * 
	 * @param OrderNo
	 */
	public void setOrderNo(String OrderNo) {
		this.OrderNo = OrderNo;
	}
	
	/**
	 * 获取Datee
	 * 
	 * @return
	 */
	public java.time.Instant getDatee() {
		return Datee;
	}

	/**
	 * 设置Datee
	 * 
	 * @param Datee
	 */
	public void setDatee(java.time.Instant Datee) {
		this.Datee = Datee;
	}
	
	/**
	 * 获取PreValue
	 * 
	 * @return
	 */
	public Integer getPreValue() {
		return PreValue;
	}

	/**
	 * 设置PreValue
	 * 
	 * @param PreValue
	 */
	public void setPreValue(Integer PreValue) {
		this.PreValue = PreValue;
	}
	
	/**
	 * 获取CurValue
	 * 
	 * @return
	 */
	public Integer getCurValue() {
		return CurValue;
	}

	/**
	 * 设置CurValue
	 * 
	 * @param CurValue
	 */
	public void setCurValue(Integer CurValue) {
		this.CurValue = CurValue;
	}
	
	/**
	 * 获取Amount
	 * 
	 * @return
	 */
	public Integer getAmount() {
		return Amount;
	}

	/**
	 * 设置Amount
	 * 
	 * @param Amount
	 */
	public void setAmount(Integer Amount) {
		this.Amount = Amount;
	}
	
	/**
	 * 获取BillMoney
	 * 
	 * @return
	 */
	public Double getBillMoney() {
		return BillMoney;
	}

	/**
	 * 设置BillMoney
	 * 
	 * @param BillMoney
	 */
	public void setBillMoney(Double BillMoney) {
		this.BillMoney = BillMoney;
	}
	
	/**
	 * 获取PayMoney
	 * 
	 * @return
	 */
	public Double getPayMoney() {
		return PayMoney;
	}

	/**
	 * 设置PayMoney
	 * 
	 * @param PayMoney
	 */
	public void setPayMoney(Double PayMoney) {
		this.PayMoney = PayMoney;
	}
	
	/**
	 * 获取UserMoney
	 * 
	 * @return
	 */
	public Double getUserMoney() {
		return UserMoney;
	}

	/**
	 * 设置UserMoney
	 * 
	 * @param UserMoney
	 */
	public void setUserMoney(Double UserMoney) {
		this.UserMoney = UserMoney;
	}

	@Override
	public String toString() {
		return "PyUserhistory [ID=" + ID + " , UserNo=" + UserNo + " , Typee=" + Typee + " , OrderNo=" + OrderNo + " , Datee=" + Datee + " , PreValue=" + PreValue + " , CurValue=" + CurValue + " , Amount=" + Amount + " , BillMoney=" + BillMoney + " , PayMoney=" + PayMoney + " , UserMoney=" + UserMoney + "  ]";
	
	}
	
	
}
